package cn.lls.entity.company;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 划水艺术家
 * @since 2022-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lls_wage")
public class WageEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 工资Id，主键
     */
    @TableId(value = "wage_id", type = IdType.AUTO)
    private Long wageId;

    /**
     * 公司的Id，外键
     */
    private Long companyId;

    /**
     * 部门的Id，外键
     */
    private Long departmentId;

    /**
     * 用户Id，外键
     */
    private Long userId;

    /**
     * 工资录入人的user_id，外键
     */
    private Long inputUserId;

    /**
     * 职位基本工资
     */
    private Double baseWage;

    /**
     * 津贴
     */
    private Double allowance;

    /**
     * 津贴补助说明
     */
    private String allowanceReason;

    /**
     * 罚款
     */
    private Double penalty;

    /**
     * 罚款补助说明
     */
    private String penaltyReason;

    /**
     * 工资录入时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    /**
     * 修改时间
     */
    private Timestamp updateTime;

    /**
     * 工资开始日期
     */
    private Date startTime;

    /**
     * 工资结束日期
     */
    private Date endTime;

    /**
     * 逻辑删除 1删除 0未删除
     */
    @TableLogic
    private Integer isDeleted;


}
